-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMware: Fixes Python3 compatibility of vmware_guest #55043
VMware: Fixes Python3 compatibility of vmware_guest #55043
Conversation
The test
The test
|
@wilmardo, just so you are aware we have a dedicated Working Group for vmware. |
ready_for_review 🎉 Also rebased against latest devel and squashed to one commit! |
|
shipit |
SUMMARY
Fix of previous PR: #51215
This allows the code to run on Python2 and Python3. For some more background information see:
https://stackoverflow.com/questions/23175809/str-translate-gives-typeerror-translate-takes-one-argument-2-given-worked-i
This uses the helper method maketrans() which is available in Python 2(docs) and Python 3(docs):
ISSUE TYPE
COMPONENT NAME
vmware_guest
ADDITIONAL INFORMATION